ExamPlay Light Logo
Oturum aç

Computer Science for IGCSE & O level - Programming (Section 4 - No. 50)

If a function needs to return multiple values, what is one common way to achieve this in programming?
Return only one value.
Use global variables.
Return a single array or object containing the multiple values.
Use multiple return statements.

Açıklama

Functions can return compound data structures (like arrays or objects) to effectively return multiple values.

Yorumlar (0)

Yorum yapmak için giriş yapın
Reklamcılık
BrainBehindX Inc Logo
©2026; Tarafından desteklenmektedir BrainBehindX Inc